diff options
| author | Adam Soltys <[email protected]> | 2022-07-30 11:13:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-30 11:13:39 -0700 |
| commit | 5bf4891768f1ee359ee5795272c289b40745aed5 (patch) | |
| tree | c1da5cd4b4f3219162b03c2314b518686b7c69ed /src/routes/invoice/[id].js | |
| parent | 8acc59a86b6ec049dfe07f92fd19eeda726136f3 (diff) | |
| download | coinos-ui-5bf4891768f1ee359ee5795272c289b40745aed5.tar.gz coinos-ui-5bf4891768f1ee359ee5795272c289b40745aed5.zip | |
get invoice by uuid
Diffstat (limited to 'src/routes/invoice/[id].js')
| -rw-r--r-- | src/routes/invoice/[id].js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/routes/invoice/[id].js b/src/routes/invoice/[id].js new file mode 100644 index 00000000..37ef098d --- /dev/null +++ b/src/routes/invoice/[id].js @@ -0,0 +1,11 @@ +import { get } from '$lib/utils'; + +const username = 'bob', + network = 'lightning'; + +export async function GET({ params }) { + let { id } = params; + let { amount, text } = await get(`/invoice?uuid=${id}`); + + return { body: { amount, text } }; +} |
